﻿
namespace EasyStep.TestActions.WebDriverFactories
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Selenium;
    using OpenQA.Selenium.Remote;
    using OpenQA.Selenium.Safari;
    using OpenQA.Selenium;
    using EasyStep.TestExecution.Browsers;
    using EasyStep.TestExecution.Interfaces;
    using System.Drawing;
    using EasyStep.TestExecution.Data;
    using EasyStep.TestActions.Utils;


    /// <summary>
    /// todo: it's not yet supported
    /// </summary>
    //public class Safari : BaseWebBrowserProxy<IWebDriver>
    //{
    //    public Safari() : base("Safari", "Safari.png", "") { }

    //    public override object GetNewInstance(IExecuteDataContext context)
    //    {
    //        var driver = new OpenQA.Selenium.Safari.SafariDriver();
    //        return driver;
    //    }
    //    public override Image MakeScreenshot(IExecuteDataContext DataContext, TestStepResult data)
    //    {
    //        return BrowserHelper.MakeScreenshot(DataContext, data);
    //    }


    //    public override void FinalizeInstance(object instanceData)
    //    {
    //        var data = instanceData as IWebDriver;
    //        if (data == null) return;
    //        data.Close();
    //        data.Dispose();
    //        data = null;
    //    }
    //}
}
